package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.entity.KjBanner;
import com.jeesite.modules.sys.entity.DictData;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class BannerResponseVo {

    @ApiModelProperty(value = "ID")
    private String id;
    @ApiModelProperty(value = "标题")
    private String name;
    @ApiModelProperty(value = "图片")
    private String img;
    @ApiModelProperty(value = "链接地址")
    private String linkAddress;

    public BannerResponseVo() {
    }

    public BannerResponseVo(KjBanner banner) {
        this.id = banner.getId();
        this.name = banner.getTitle();
        this.img = banner.getImg();
        this.linkAddress=banner.getLinkAddress();
    }
}
